<include file="public/header" title="资讯中心" body="g4"/>
<if condition="$cat_name eq ''">
<include file="public/header_nav" title="资讯中心" href="javascript:history.back(-1);"/>
<else/><include file="public/header_nav" title="{$cat_name}" href="javascript:history.back(-1);"/></if>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<style>
    .my .content .floor_order ul li {
        width: 25%;
    }
    .myhearder .person .lors{
    	overflow: auto!important;
    }
    .myhearder{
    	background:url(__STATIC__/images/banner.png);
		background-size:100% 100%;
    }
</style>
    <div class="myhearder" >
    </div>
    <div class="floor my p">
        <div class="content">
            <div class="floor list7 ma-to-20">
               <foreach name="vals" item="v"> 
                <div class="myorder p">
                    <div class="content30">
                        <a href="{:U('Mobile/Article/articlecat',array('cat_id'=>$v.cat_id,'cat_name'=>$v.cat_name))}">
                            <div class="order">
                                <div class="fl">
                                    <!-- <img src="__STATIC__/images/w1.png"/> -->
                                    <span>{$v.cat_name}</span>
                                </div>
                                <div class="fr">
                                    <i class="Mright"></i>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
                </foreach>
            </div>
        </div>
        <div class="setting">
            <div class="close">
                <a href="{:U('Mobile/User/logout')}" id="logout">安全退出</a>
            </div>
        </div>
    </div>
    <input type="hidden" id="user_address" value="{$user_address}">
    <!--底部导航-start-->
    <include file="public/footer_nav"/>
    <!--底部导航-end-->
    <script src="__STATIC__/js/style.js" type="text/javascript" charset="utf-8"></script>
    <!-- <script type="text/javascript">
    
        wx.config({
          debug: false,
          appId: '<?php echo $signPackage["appId"];?>',
          timestamp: '<?php echo $signPackage["timestamp"];?>',
          nonceStr: '<?php echo $signPackage["nonceStr"];?>',
          signature: '<?php echo $signPackage["signature"];?>',
          jsApiList: ['checkJsApi','openLocation','getLocation']
        });
    
        wx.ready(function(){
            var user_address=$('#user_address').val();
            if(user_address==''||user_address==0){
                wx.checkJsApi({
                    jsApiList: [
                        'getLocation'
                    ],
                    success: function (res) {
                        if (res.checkResult.getLocation == false) {
                            alert('你的微信版本太低，不支持微信JS接口，请升级到最新的微信版本！');
                            return;
                        }
                    }
                });
                wx.getLocation({
                    success: function (res) {
                      var latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
                      var longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
                      var speed = res.speed; // 速度，以米/每秒计
                      var accuracy = res.accuracy; // 位置精度
                        $.ajax({
                            type : 'get',
                            url : '/index.php?m=mobile&c=user&a=weixin_address&latitude='+latitude+'&longitude='+longitude,
                            dataType : 'json',
                            success : function(data){
    
                            },
                        });                
                    },
                    cancel: function (res) {
                      alert('用户拒绝授权获取地理位置');
                      self.location='/';
                    }
                });
                // var ua = window.navigator.userAgent.toLowerCase();
                // if(ua.match(/MicroMessenger/i) == 'micromessenger'){
                //     $("#wx").css('display','block');
                // }
            } 
    
        });
    </script> -->
</body>
</html>
